import React from 'react';
import { Form, Row, Col, Button, Space } from 'antd';
import { FormInstance } from 'antd/es/form';

interface CompanyFormProps {
  form: any;
}




export const CompanyForm: React.FC<CompanyFormProps> = ({ form }) => {
  return (
    <Form 
      form={form} 
      layout="vertical" 
      size="small" 
      style={{ padding: '0 16px' }}
    >
      <h4 style={{ fontWeight: 'bold', marginTop: '16px' }}>公司基本信息</h4>
      
      {/* 第一行 */}
      <Row gutter={16}>
        <Col span={8}>
          <Form.Item label="项目编号">
            <span>PROJ-2024-001</span>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="项目名称">
            <span>某大型制造企业年度财务报表审计项目</span>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="被审计单位">
            <span>北京科技发展有限公司</span>
          </Form.Item>
        </Col>
      </Row>
      
      {/* 第二行 */}
      <Row gutter={16}>
        <Col span={8}>
          <Form.Item label="被审计单位简称">
            <span>北京科技</span>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="被审计单位企业信用代码">
            <span>91110000123456789X</span>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="上级单位企业信用代码">
            <span>91110000987654321A</span>
          </Form.Item>
        </Col>
      </Row>
      
      {/* 第三行 */}
      <Row gutter={16}>
        <Col span={8}>
          <Form.Item label="集团公司企业信用代码">
            <span>91110000555666777B</span>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="审计年度">
            <span>2024</span>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="风险级别">
            <span>中风险</span>
          </Form.Item>
        </Col>
      </Row>
      
      {/* 第四行 */}
      <Row gutter={16}>
        <Col span={8}>
          <Form.Item label="会计期间开始">
            <span>2024-01-01</span>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="会计期间结束">
            <span>2024-12-31</span>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="财务报告体系">
            <span>企业会计准则</span>
          </Form.Item>
        </Col>
      </Row>
      
      {/* 第五行 */}
      <Row gutter={16}>
        <Col span={8}>
          <Form.Item label="报告模板">
            <span>标准审计报告模板</span>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="底稿模板">
            <span>标准工作底稿模板</span>
          </Form.Item>
        </Col>
        <Col span={8}>
          {/* 空列，保持布局对齐 */}
        </Col>
      </Row>

      {/* <Form.Item wrapperCol={{ offset: 0, span: 24 }} style={{ textAlign: 'right', marginTop: '16px' }}>
        <Space>
          <Button type="primary" htmlType="submit">
            保存
          </Button>
          <Button>重置</Button>
        </Space>
      </Form.Item> */}
    </Form>
  );
};
